package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author lee
 * @version v1.0
 * @date 2019/11/27 15:43
 * @since v1.0
 */
@Getter
public enum ForbiddenSettingEnum {

    DISABLE_TITLE("title","enum.ForbiddenSettingEnum.description.disable_title"),
    DISABLE_MEMO("memo","enum.ForbiddenSettingEnum.description.disable_memo"),
    DISABLE_DEFAULT("default","enum.ForbiddenSettingEnum.description.disable_default"),
    DISABLE_RULE("rule","enum.ForbiddenSettingEnum.description.disable_rule"),
    DISABLE_SCOPE("scope","enum.ForbiddenSettingEnum.description.disable_scope"),
    DISABLE_REQUIRE_RULE("requireRule","enum.ForbiddenSettingEnum.description.disable_require_rule"),
    DISABLE_REPEAT_RULE("repeatRule","enum.ForbiddenSettingEnum.description.disable_repeat_rule"),
    DISABLE_TYPE("type","enum.ForbiddenSettingEnum.description.disable_type"),
    DISABLE_PERMISSION("permission","enum.ForbiddenSettingEnum.description.disable_permission"),
    DISABLE_VISIBLE_PERMISSION("visiblePermission","enum.ForbiddenSettingEnum.description.disable_visible_permission"),
    DISABLE_VISIBLE_CORRELATION_FIELD("correlationField","enum.ForbiddenSettingEnum.description.disable_visible_correlation_field"),
    DISABLE_ITEMS("items","enum.ForbiddenSettingEnum.description.disable_items"),
    DISABLE_MONEY_TYPE("moneyType","enum.ForbiddenSettingEnum.description.disable_money_type"),
    DISABLE_LINK_FORM_LINK_FIELD("linkForm_linkField","enum.ForbiddenSettingEnum.description.disable_link_form_link_field"),
    DISABLE_ADVANCE_ENABLE("editable_advance_enable","enum.ForbiddenSettingEnum.description.disable_advance_enable"),
    DISABLE_SUMMARY("summary","enum.ForbiddenSettingEnum.description.summary"),
    DISABLE_OPTION_RELY("optionRely","enum.ForbiddenSettingEnum.description.optionRely"),
    DISABLE_SELF_DEFINE("selfDefine","enum.ForbiddenSettingEnum.description.selfDefine"),
    ;

    ForbiddenSettingEnum(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }

    private String alias;
    private String description;

    public String getDescription() {
        return I18nMessageUtil.getMessage(description);
    }
}
